/* 
 * File:   v4l_common.h
 * Author: gustavo
 *
 * Created on May 19, 2011, 3:24 AM
 */

#ifndef V4L_COMMON_H
#define	V4L_COMMON_H

#include <string.h>

#ifdef	__cplusplus
extern "C" {
#endif

	//#define xioctl( fd, request, arg ) _xioctl_perror( fd, #request, request, arg )
	//#define xioctl( fd, request, arg, wrapper ) __xioctl( fd, request, arg, wrapper )
#define xioctl( fd, request, arg) _xioctl( fd, request, arg )

	int __xioctl(int fd, int request, void * arg, int wrapper);
	//int _xioctl(int fd, int request, void * arg);
	//int _xioctl_perror(int fd, char * req, int request, void * arg);


#ifdef	__cplusplus
}
#endif

#endif	/* V4L_COMMON_H */

